import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import '@/icons' // icon
import '@/permission' // permission control
import _ from 'lodash'
Vue.prototype._ = _


// 引入基本样式
import './assets/styles/reset.css'
import './assets/styles/border.css'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets


// 导入地图
import VueAMap from '@vuemap/vue-amap'
import '@vuemap/vue-amap/dist/style.css'

Vue.use(VueAMap)
window._AMapSecurityConfig = {
  securityJsCode: '124b4dde2f1342c189cc28da39335afa'
}
VueAMap.initAMapApiLoader({
  key: '008ccf3ea5e353bc9c6cf1825883b59f'
})

// 引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//引入axios
import axios from 'axios';
Vue.prototype.$axios = axios;
axios.defaults.timeout = 500000;
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';
axios.defaults.baseURL = "http://znifmu.natappfree.cc";


Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
